package com.cw.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelProperty;

/**
* @author smq
* @since 2021-04-28
*/
@ApiModel(value ="用户角色管理")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_ROLE")
public class SysRole implements Serializable {

private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "ROLE_ID")
    @TableId("ROLE_ID")
    private String roleId;

    @ExcelProperty(value = "ROLE_NAME")
    @TableField("ROLE_NAME")
    private String roleName;

    @ExcelProperty(value = "ROLE_CODE")
    @TableField("ROLE_CODE")
    private String roleCode;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "ROLE_DESC")
    @TableField("ROLE_DESC")
    private String roleDesc;

    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "删除标识（0-正常,1-删除）")
    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
    private String deleteFlag;

    @ApiModelProperty(value = "排序")
    @ExcelProperty(value = "SORT")
    @TableField("SORT")
    private Long sort;

    @ApiModelProperty(value = "数据集 0个人用户  1管理员")
    @ExcelProperty(value = "DATA_COLLECTION")
    @TableField("DATA_COLLECTION")
    private String dataCollection;
}
